package org.zj.webview.type;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zj
 * @since 2025/7/6
 */
@Slf4j
public class Slf4jLogger implements ILogger {
    @Override
    public void log(LogLevel level, String message) {
        switch (level) {
            case NONE:
                break;
            case TRACE:
                LOGGER.trace(message);
                break;
            case DEBUG:
                LOGGER.debug(message);
                break;
            case INFO:
                LOGGER.info(message);
                break;
            case WARN:
                LOGGER.warn(message);
                break;
            case ERROR:
                LOGGER.error(message);
                break;
        }
    }
}
